﻿<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <title>Google 地图 API 示例: Google 工具条</title>
    <script src="http://ditu.google.cn/maps?hl=zh-CN&amp;file=api&amp;v=2&amp;key=ABQIAAAAPTwhF4vlVXrO7ZGOjA9sOxTqQ5WtUwE0C8FR1hRk-yj3qFOmhhR6esbxCerNyfzApAoTJGfOHzcKCQ&sensor=false"></script>
    <script type="text/javascript">
      var map;
      function initialize() {
        if (GBrowserIsCompatible()) { 
           map = new GMap2(document.getElementById("map_canvas"),
                           {size: new GSize(500, 500),
                            googleBarOptions: {showOnLoad : true}});
           map.setCenter(new GLatLng(39.917, 116.397), 14);
           map.addControl(new GSmallMapControl());
           map.enableGoogleBar();
        }
      }
    </script>
   </head>
   <body onload="initialize()">
     <div id="map_canvas"></div>
   </body>
</html>